package org.pb.order.service;

import org.pb.basic.service.IBaseService;
import org.pb.basic.utils.PageList;
import org.pb.order.domain.AdoptOrder;
import org.pb.order.query.AdoptOrderQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 领养订单的业务层接口
 * @author pb
 */
public interface IAdoptOrderService extends IBaseService<AdoptOrder, AdoptOrderQuery> {

    /**
     * 领养订单提交方法
     * @param map 领养订单参数
     * @param request 领养请求的请求对象
     * @return
     */
    String submit(Map<String, Long> map, HttpServletRequest request);

    /**
     * 根据角色分页查询
     * @param query 查询条件
     * @param request 查询请求对象
     * @return 返回查询结果
     */
    PageList<AdoptOrder> adminQuery(AdoptOrderQuery query, HttpServletRequest request);
}
